(function () {
    var oLogi = document.getElementById("logi");
    var span = oLogi.getElementsByTagName("span");
    if (localStorage.isLogin == "true") {
        span[0].style.display = "none";
        span[1].style.display = "block";
    } else {
        span[1].style.display = "none";
        span[0].style.display = "block";
    }
    var tag = true;
    span[1].onmouseover = function () {
        if (tag == true) {
            span[2].className = "exit1";
            tag = false;
        } else {
            span[2].className = "exit";
            tag = true;
        }
        return false;
    }
    span[2].onclick = function () {
        span[1].style.display = "none";
        span[0].style.display = "block";
        span[2].className = "exit";
        localStorage.isLogin=false;

        return false;
    }
  


    //底部导航栏
    
    // var oFooter=document.getElementsByClassName("footer")[0];

    // var clientHeight=document.documentElement.clientHeight;
    // var clientHeight=document.documentElement.clientHeight;
    // var st=document.documentElement.scrollTop||document.body.scrollTop;
    // var fh=oFooter.offsetTop+oFooter.offsetHeight;
    // oFooter.style.top=cha + "px";

    // window.onresize=function(){
    //     var clientHeight=document.documentElement.clientHeight;
    //     var st=document.documentElement.scrollTop||document.body.scrollTop;
    //     var fh=oFooter.offsetTop+oFooter.offsetHeight;
    //     var cha=clientHeight-fh+st;
    //     oFooter.style.top=cha + "px";
    // }

})()